package com.base.mapper.voipmapper;

import com.base.po.voip.SelfShopCoupon;
import com.base.po.voip.SelfShopCouponExample;
import com.base.utils.Page;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SelfShopCouponMapper {
    int countByExample(SelfShopCouponExample example);

    int deleteByExample(SelfShopCouponExample example);

    int insert(SelfShopCoupon record);

    int insertSelective(SelfShopCoupon record);

    List<SelfShopCoupon> selectByExample(SelfShopCouponExample example);
    
    List<SelfShopCoupon> selectBySelfShopCoupon(@Param("parentid") String parentid, @Param("shopid") String shopid,
                                                @Param("batch") String batch);
    
    List<SelfShopCoupon> selectAllSelfShopCoupon(@Param("page") Page page,
                                                 @Param("parentid") String parentid, @Param("shopid") String shopid,
                                                 @Param("batch") String batch, @Param("mobile") String mobile,
                                                 @Param("status") Byte status);
    
    SelfShopCoupon selectByCoupon(@Param("coupon") String coupon,
                                  @Param("parentid") String parentid, @Param("shopid") String shopid);

    int updateByExampleSelective(@Param("record") SelfShopCoupon record, @Param("example") SelfShopCouponExample example);

    int updateByExample(@Param("record") SelfShopCoupon record, @Param("example") SelfShopCouponExample example);
    
    int updateByPrimaryKeySelective(SelfShopCoupon record);
    
    int countAllSelfShopCoupon(@Param("parentid") String parentid, @Param("shopid") String shopid,
                               @Param("batch") String batch, @Param("mobile") String mobile,
                               @Param("status") Byte status);
}